import 'package:dio/dio.dart';
import 'package:retrofit/error_logger.dart';
import 'package:retrofit/http.dart';
import 'package:x_builder/base/network/dio_client.dart';
import 'package:x_builder/base/network/model/http_constants.dart';

part 'api.g.dart';

///
/// @Author: Lee
/// @Date: 2025/1/22 16:17
/// @Description: RestFul Api请求
///
@RestApi(baseUrl: HttpConstants.baseUrl)
abstract class Api {
  static final Api _instance = _Api(DioClient.instance.dio);

  factory Api() => _instance;
}
